﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __2ADE72C1_4592_48d8_91F2_A584BDEF4A13__
#define __2ADE72C1_4592_48d8_91F2_A584BDEF4A13__

#include "../import/head.h"
#include "../os/head.h"

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace xos
{

    class thread_lock
    {
    public:
        thread_lock();
        ~thread_lock();

    protected:
        mutex m_lock;

    public:
        int un_lock();
        int lock();
    };

} // xos

#endif // __2ADE72C1_4592_48d8_91F2_A584BDEF4A13__
